using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace CollisionTool
{
    public partial class SuperSaver : Form
    {
        public SuperSaver(Form1 refMainForm)
        {
            // set our reference to the main form
            // so that we can call the save function
            m_refMainForm = refMainForm;

            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //m_nFramesWide = FramesWide.con;
            //m_nFramesHigh = FramesHigh;
            //m_nFrameCount = FrameCount;

            //fSaverDlg.m_nFramesWide;
            //fSaverDlg.m_nFramesHigh;
            //fSaverDlg.m_nFrameCount;

            // refer to our reference to our main form
            int nFramesWide = BumblePig.StringHelper.StringToInteger(this.FramesWide.Text.ToString());
            int nFramesHigh = BumblePig.StringHelper.StringToInteger(this.FramesHigh.Text.ToString());
            int nFrameCount = BumblePig.StringHelper.StringToInteger(this.FrameCount.Text.ToString());
            m_refMainForm.saveFileOut(nFramesWide, nFramesHigh, nFrameCount);

            // hide the save dialog
            this.Hide();
        }
    }
}
